﻿@model MvcAtletIS.Models.Articles

@{
    ViewBag.Title = "Články";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Zobraziť článok</h2>

<fieldset>
    <legend>Detaily</legend>

    <div class="display-label">
        @Html.LabelFor(model => model.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.City)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.City)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Date)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Date)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Editor)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Editor)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Perex)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Perex)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Text)
    </div>
    <div class="display-field">
        @Html.Raw(Model.Text)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Active)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Active)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Top)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Top)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.ImagePath)
    </div>
    <div class="display-field">
        <img src="@Url.Content("~/Content/articles/" + @Model.ImagePath)" alt="commonArticle.Name" align="left" class="article-image" />
    </div>

    <div class="editor-label">
            @Html.LabelFor(model => model.ImageText)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.ImageText)
        </div>
    
</fieldset>

<p>
    @Html.ActionLink("Editovať", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Naspäť na prehľad článkov", "Index", new { CategoryId = Model.CategoryId })
</p>

